CPPFLAGS = -Iinclude
CFLAGS = -g -Wall
LDFLAGS = 
CC = gcc
#CC = arm-linux-gcc
src = $(wildcard *.c)
obj = $(patsubst %.c,%.o,$(src)) 
target = weather_client
$(target):$(obj) 
	@$(CC) $^ $(LDFLAGS) -o $@

%.o:%.c
	@$(CC) -c $< $(CFLAGS) $(CPPFLAGS) -o $@



.PHONY:clean
clean:
	-rm -f *.o
	-rm  -f weather_client
